const {Schema,model}=require('mongoose')
const {typesModel}=require('./typesModel')
const insurancesSchema=new Schema({
    insurancesPolicy:Array,
    delete:{
        type:Boolean,
        default:false
    },
    insurancesName:String,
    insurancesPayType:String,
    insurancesSuitableFor:String,
    insurancesRenew:{
        type:Boolean,
        default:false
    },
    insurancesPrice:String,
    typesId:{
        type:Schema.Types.ObjectId,
        ref:typesModel
    },
    insuranceImages:String,
    insuranceMessage:String
},{ versionKey: false })
module.exports.insurancesModel=model("insurancesModel",insurancesSchema,"insurances")
